import App from '../App';
// 注册
const Register = () => import('components/user/register');
// 注册成功
const RegisterSuccess = () => import('components/user/register-success');
// 验证码身份验证
const Idcard_one = () => import('components/user/idcard_one');
// 拍照身份验证
const Idcard_two = () => import('components/user/idcard_two');
//申请发票
const Apply_invioce = () => import('components/invioce/apply');
// 个人中心 我的订单
const My_order = () => import('components/order/usercenter');
//酒店详情
const Hotel = () => import('components/order/hotel');
//暂无酒店详情
const Nohotel = () => import('components/order/nohotel');
//订单详情
const Order_detail = () => import('components/order/orderdetail');
// 申诉提交成功
const Appeal_success = () => import('components/user/appeal-success');
// 身份认证申诉
const Appeal_index = () => import('components/user/appeal_index');
// 意见反馈
const Feedback = () => import('components/user/feedback');
// 反馈成功
const FeedbackSuccess = () => import('components/user/feedback-success');
// 开票成功
const Invioce_Success = () => import('components/invioce/invoicesuccess');
// 个人信息
const UserInfo = () => import('components/user/userinfo');
// 个人信息头像详情
const UserInfo_one = () => import('components/user/userinfo_one');
// 修改昵称
const UserInfo_name = () => import('components/user/userinfo_name');
// 更换手机号
const UserInfo_phone = () => import('components/user/userinfo_phone');
// 个人信息-身份认证
const UserInfo_idcard = () => import('components/user/userinfo_idcard');
// 个人信息列表
const UserInfo_list = () => import('components/user/userinfo_list');
// 修改地址
const UserInfo_address = () => import('components/user/userinfo_address');

//发票列表
const Invioce_list = () => import('components/invioce/inviocelist');
//发票详情
const Invioce_detail = () => import('components/invioce/inviocedetail');

const Wait = () => import('components/user/wait');
const ServiceDetail = () => import('components/order/service_detail');
export default [  
	{ 
		path: '',
		component: App,
		redirect: '/register',
		children: [
			{ 	
				path: '/register', 
				component: Register, 
				meta: {
					title: '注册',
					notRequireAuth: true
				}
			}, 
			{ 	
				path: '/servicedetail', 
				component: ServiceDetail, 
				meta: {
					title: '宜住人生'
				}
			}, 
			{ 	
				path: '/wait', 
				component: Wait, 
				meta: {
					title: '申诉待审核',
					notRequireAuth: true
				}
			}, 
			{ 	
				path: '/registersuccess', 
				component: RegisterSuccess, 
				meta: {
					title: '注册',
				}
			}, 
			{ 	
				path: '/idcardone', 
				name: 'Idcard_one',
				component: Idcard_one, 
				meta: {
					title: '身份认证',
				}
			},
			{ 	
				path: '/idcardtwo', 
				component: Idcard_two, 
				meta: {
					title: '身份认证',
				}
			},
			{ 	
				path: '/appealsuccess', 
				component: Appeal_success, 
				meta: {
					title: '身份认证申诉',
				}
			},
			{ 	
				path: '/appeal', 
				component: Appeal_index, 
				meta: {
					title: '身份认证申诉',
					notRequireAuth: true
				}
			},
			{ 	
				path: '/feedback', 
				component: Feedback, 
				meta: {
					title: '意见反馈',
				}
			},
			{ 	
				path: '/feedbacksuccess', 
				component: FeedbackSuccess, 
				meta: {
					title: '意见反馈',
				}
			},
			{ 	
				path: '/userinfo', 
				component: UserInfo, 
				meta: {
					title: '个人信息',
				}
			},
			{ 	
				path: '/userinfoone', 
				component: UserInfo_one, 
				meta: {
					title: '个人信息',
				}
			},
			{ 	
				path: '/userinfoaddress', 
				component: UserInfo_address, 
				meta: {
					title: '地址',
				}
			},
			{ 	
				path: '/userinfoname', 
				component: UserInfo_name, 
				meta: {
					title: '个人信息',
				}
			},
			{ 	
				path: '/userinfolist', 
				component: UserInfo_list, 
				meta: {
					title: '个人信息',
				}
			},
			{ 	
				path: '/userinfophone', 
				component: UserInfo_phone, 
				meta: {
					title: '个人信息',
				}
			},
			{ 	
				path: '/userinfoidcard', 
				component: UserInfo_idcard, 
				meta: {
					title: '身份认证',
				}
			},
			{ 	
				path: '/apply_invioce', 
				component: Apply_invioce, 
				meta: {
					title: '申请开票',
				}
			},	
			{ 	
				path: '/my_order', 
				component: My_order, 
				meta: {
					title: '个人中心',
					keepAlive:true
				
				}
			},
			{ 	
				path: '/hotel', 
				component: Hotel, 
				meta: {
					title: '酒店详情',
				}
			},	
			{ 	
				path: '/nohotel', 
				component: Nohotel, 
				meta: {
					title: '酒店详情',
				}
			},				
			{ 	
				path: '/orderdetail', 
				component: Order_detail, 
				meta: {
					title: '订单详情',
				}
			},	
			{ 	
				path: '/inviocelist', 
				component: Invioce_list, 
				meta: {
					title: '开票记录',
				}
			},
			{ 	
				path: '/inviocedetail', 
				component: Invioce_detail, 
				meta: {
					title: '开票详情',
				}
			},
			{ 	
				path: '/inviocesuccess', 
				component:Invioce_Success, 
				meta: {
					title: '开票成功',
				}
			},																				
			// {
			// 	path: 'lessionIndex', // 酷奇课堂
			// 	component: LessionIndex,
			// 	meta: {keepAlive: true},
			// 	children: [{
			// 		path: 'classTry',
			// 		component: ClassTry,
			// 		meta: {keepAlive: true},
			// 	}, {
			// 		path: 'classFine',
			// 		component: ClassFine,
			// 		meta: {keepAlive: true},
			// 	}]
			// }, 
			// { path: '/activityList', component: ActivityList },

		] 
	},
	

 
] 